<?php

namespace App\Repositories;

use App\Models\NewDevelopment;
use InfyOm\Generator\Common\BaseRepository;

/**
 * Class NewDevelopmentRepository
 * @package App\Repositories
 * @version February 25, 2018, 1:53 pm UTC
 *
 * @method NewDevelopment findWithoutFail($id, $columns = ['*'])
 * @method NewDevelopment find($id, $columns = ['*'])
 * @method NewDevelopment first($columns = ['*'])
*/
class NewDevelopmentRepository extends BaseRepository
{
    /**
     * @var array
     */
    protected $fieldSearchable = [
        'title',
        'author',
        'pic',
        'read_num',
        'like_num',
        'content'
    ];

    /**
     * Configure the Model
     **/
    public function model()
    {
        return NewDevelopment::class;
    }
}
